package com.qc.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

public class BannerEntity extends BaseEntity{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    private long id;
    private String name;
    private int position;//位置 1/秘书 2/BOSS 3/商家
    private String parameter;
    private int level;//级别
    private int type; //类型 1/网页 2/商家 3/会员
    private int count;
    private String imgUrl;
    private int open;
    
    public static BannerEntity getInstance(ResultSet rs) throws SQLException {
    	BannerEntity entity = new BannerEntity();
		entity.setId(rs.getLong("id"));
		entity.setName(rs.getString("name"));
		entity.setPosition(rs.getInt("position"));
		entity.setParameter(rs.getString("parameter"));
		entity.setLevel(rs.getInt("level"));
		entity.setType(rs.getInt("type"));
		entity.setCount(rs.getInt("count"));
		entity.setImgUrl(rs.getString("imgUrl"));
		entity.setOpen(rs.getInt("open"));
		return entity;
	}
    
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getPosition() {
		return position;
	}
	public void setPosition(int position) {
		this.position = position;
	}
	public String getParameter() {
		return parameter;
	}
	public void setParameter(String parameter) {
		this.parameter = parameter;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public String getImgUrl() {
		return imgUrl;
	}
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	public int getOpen() {
		return open;
	}
	public void setOpen(int open) {
		this.open = open;
	}
    
    
    
    
    

    
}
